package org.linlinjava.litemall.admin.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Builder;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@Builder
public class AdminCouponStrategyDetailVO implements Serializable {

    @JsonSerialize(using = ToStringSerializer.class)
    private Long couponId;

    private String couponName;

    private String strategyName;

    private BigDecimal min;
    private Integer couponType;

    private Byte discountType;

    private BigDecimal discountRate;
    private BigDecimal discount;
    /**
     * 时间类型
     */
    private Short timeType;

    /**
     * 天
     */
    private Short days;

    /**
     * 开始时间
     */
    private LocalDateTime startTime;

    /**
     * 结束时间
     */
    private LocalDateTime endTime;

    private Short userLimit;
    private Boolean status;

    private Integer total;

    /**
     * 使用限制
     */
    private Short useLimit;

    /**
     * 使用限制num
     */
    private Integer useLimitNum;

    private Boolean isShow;
    @JsonSerialize(using = ToStringSerializer.class)
    private Long receiveNum;
    private String useInstruction;
}
